<article class="module width_full">
	<header>
		<h3 class="tabs_involved">发货地址列表</h3>
		<ul class="tabs">
			<li><input type="button" class="alt_btn" onclick="window.location.href='{url:/seller/ship_info_edit}';" value="添加地址" /></li>
			<li><input type="button" class="alt_btn" onclick="selectAll('id[]')" value="全选" /></li>
			<li><input type="button" class="alt_btn" onclick="delModel();" value="批量删除" /></li>
		</ul>
	</header>

	<form action="{url:/seller/ship_info_del}" method="post" name="ship_list">
		<table class="tablesorter" cellspacing="0">
			<colgroup>
				<col width="40px" />
				<col />
			</colgroup>

			<thead>
				<tr>
					<th>选择</th>
					<th>发货点名称</th>
					<th>地址</th>
					<th>邮编</th>
					<th>电话</th>
					<th>发货人</th>
					<th>默认</th>
					<th>操作</th>
				</tr>
			</thead>

			<tbody>
                {set:$queryObj=Api::run('getShipInfoList',array('is_del'=>0));$resultData=$queryObj->find()}
                {foreach:items=$resultData}
				<tr>
					<td><input name="id[]" type="checkbox" value="{$item['id']}" /></td>
					<td>{$item['ship_name']}</td>
					<td>{$item['address']}</td>
					<td>{$item['postcode']}</td>
					<td>{if:$item['mobile']!=""}{$item['mobile']}{else:}{$item['telphone']}{/if}</td>
					<td>{$item['ship_user_name']}</td>
					<td>
						{if:$item['is_default']==1}
						<a class='red2' href="{url:/seller/ship_info_default/id/$item[id]/default/0}">取消默认</a>
						{else:}
						<a class="blue" href="{url:/seller/ship_info_default/id/$item[id]/default/1}">设为默认</a>
						{/if}
					</td>
					<td>
						<a href="{url:/seller/ship_info_edit/sid/$item[id]}"><img src="{skin:images/main/icn_edit.png}" alt="编辑" /></a>
						<a href="javascript:void(0)" onclick="delModel({link:'{url:/seller/ship_info_del/id/$item[id]}'})"><img src="{skin:images/main/icn_del.png}" alt="删除" /></a>
					</td>
				</tr>
				{/foreach}
			</tbody>
		</table>
	</form>
	{$queryObj->getPageBar()}
</article>